package com.redhat.redwork.coc;

import com.opensymphony.xwork2.ActionSupport;

/**
 * provide a default implementation for redwork style actions.
 * 
 * @author Justin
 * 
 */
public class RedworkActionSupport extends ActionSupport implements RedworkAction{

	private static final long serialVersionUID = 526099563356114852L;

	/**
	 * Determine a method can be executed
	 * @param methodName
	 * @return
	 */
	public boolean allowMethod(String methodName){
		return true;
	}
	
	/**
	 * json root object, null stands for "this action"
	 * @param methodName
	 * @return
	 */
	public String getJsonRoot(String methodName){
		return null;
	}
	
	/**
	 * get the "input" page for given method
	 * @param methodName
	 * @return
	 */
	public String getInput(String methodName){
		return null;
	}
}
